#ifndef FILEAREA_H
#define FILEAREA_H

#include "area.h"

#include <QImage>
#include <QPainter>
#include <QPoint>
#include <QDesktopServices>
#include <QUrl>

class FileArea : public Area
{

public:

   FileArea(QWidget* parent=0, int x=0, int y=0, int width=250, int height=80, int id=-1, int serial=-1);

   void setData(const QString &filename);

   bool isEmpty() const;
   virtual QByteArray contains() const;

private:

   void paintEvent(QPaintEvent *);
   void mouseDoubleClickEvent(QMouseEvent *);

private:

   QImage _image;
   QString _filename;

};


#endif // FILEAREA_H
